package com.zhang.gulimall.product.feign;

import com.zhang.gulimall.common.to.SkuHasStockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-ware")
@Service
public interface WareFeignService {

    @RequestMapping("/ware/waresku/hasstock")
    List<SkuHasStockTo> hasStock(@RequestBody List<String> ids);
}
